home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Developer / CIncludesTool 1.0 / modified version / put in scripts folder / SetCompiler < prev   
Encoding:
Text File  |  1994-02-26  |  821 b   |  26 lines  |  [TEXT/MPS ]

  1. ## SetCompiler
  2. ##
  3. ## MPW script to set the CIncludesCompiler environment variable to support multi-compiler development
  4.  
  5. If ("{1}" == 'AppleCFront') || ("{1}" == 'SymantecC++') || ("{1}" == 'MetrowerksC++')
  6.     Set CIncludesCompiler "{1}"
  7. Else
  8.     Set Compiler "`Begin; GetListItem -d  "Apple CFront" "Symantec C++" "Metrowerks C++" -m "Select C++ compiler:" -s; Set ListStatus {Status}; End`" ≥≥ Dev:Null
  9.     If ({ListStatus} == 0)
  10.         # a target system was selected
  11.         If ({Compiler} == 'Apple CFront')
  12.             Set CIncludesCompiler 'AppleCFront'
  13.         Else
  14.             If ({Compiler} == 'Symantec C++')
  15.                 Set CIncludesCompiler 'SymantecC++'
  16.             Else
  17.                 If ({Compiler} == 'Metrowerks C++')
  18.                     Set CIncludesCompiler 'MetrowerksC++'
  19.                 End  # If
  20.             End  # If
  21.         End  # If
  22.         Unset ListStatus
  23.     End  # If
  24.     Unset Compiler
  25. End # If
  26. # end of SetCompiler